#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include "../ClientDispatch/ClientDispatch.h"
#include "../ClientDispatch/ClientDispatchLog.h"
#include "../Maildir/Maildir.h"

void InterruptSignalHandler(int signalType)
{
	signal(SIGINT, InterruptSignalHandler);
	
	Log("Shutting down client dispatch...");
	CDShutdown();
	exit(0);
}

int main (int argc, const char * argv[]) 
{
	signal(SIGINT, InterruptSignalHandler);
	// MaildirCreateForCurrentUser();
	CDInit();
	CDRun();
	
	return 0;
}
